package com.genexususa.eo.connection.google.test.goals;

import com.genexususa.eo.connection.google.analytics.AnalyticsManager;

/**
 * Created with IntelliJ IDEA.
 * User: Emiliano Martinez
 * Date: 8/19/14
 * Time: 2:35 PM
 * To change this template use File | Settings | File Templates.
 */
public class ConsumeGetPageInventoryViews {

    public static void main(String[] args){

        String xml = "<GoogleAnalyticsQuery xmlns=\"L2TMedia1.5\">\n" +
                "\t<filePath>C:\\L2T\\nbov</filePath>\n" +
                "\t<applicationName>L2TMEDIA</applicationName>\n" +
                "\t<profileId>86600108</profileId>\n" +
                "\t<accountId>36355313</accountId>\n" +
                "\t<startDate>2014-09-01</startDate>\n" +
                "\t<endDate>2014-09-30</endDate>\n" +

                "\t<dimensions>\n" +
                "\t\t<Item>ga:adwordsCampaignID</Item>\n" +
                "\t</dimensions>\n" +
                //"\t<filters>\n" +
                //"\t</filters>\n" +
                "\t<maxResults>0</maxResults>\n" +
                "</GoogleAnalyticsQuery>";

        xml = "<GoogleAnalyticsQuery xmlns=\"L2TMediaTrunk\">\n" +
                "                <filePath>C:\\L2T\\nbov</filePath>\n" +
                "                <applicationName>L2TMEDIA</applicationName>\n" +
                "                <profileId>87729444</profileId>\n" +
                "                <startDate>2014-09-01</startDate>\n" +
                "                <endDate>2014-09-30</endDate>\n" +
                "                <accountId>52206634</accountId>\n" +
                "                <dimensions>\n" +
                "                               <Item>ga:adwordsCampaignID</Item>\n" +
                "                </dimensions>\n" +
                "\t<filters>\n" +
                "<Item>ga:adwordsCampaignID!=(not set)</Item>" +
                "\t</filters>\n" +
                "                <maxResults>0</maxResults>\n" +
                "</GoogleAnalyticsQuery>\n";

        AnalyticsManager am = new AnalyticsManager();
        String res = am.getInventoryPageViews(xml);

    }
}
